package com.woniuxy.lab.woniu_lab_boss.exception;


public class WebException extends RuntimeException {

    private Integer code;

    public WebException(Integer code, String message){
        super(message);
        this.code = code;
    }

    public WebException(WebExceptionCode webExceptionCode){
        super(webExceptionCode.getMessage());
        this.code = webExceptionCode.getCode();
    }

    public Integer getCode() {
        return code;
    }
}
